home *** CD-ROM | disk | FTP | other *** search
-
- #include <process.h>
- #include <sysvars.h>
- #include "frame.h"
- #include "povproto.h"
- #include "povray.h"
- #include "optin.h"
-
- unsigned long clock_s;
- unsigned long clock_e;
- unsigned long time_s;
- unsigned long time_e;
-
- void Display_Finished()
- {
- if (opts.Options & PROMPTEXIT)
- {
- WAIT_FOR_KEYPRESS;
- }
- }
-
- void MSDOS_Startup(){};
-
- void MSDOS_Other_Credits(){};
-
- int MSDOS_System(char *s)
- {
- return 0;
- }
-
- void MSDOS_Process_Env(void)
- {
- if ((Option_String_Ptr = getenv("POVINI")) != NULL)
- {
- if (!parse_ini_file(Option_String_Ptr))
- {
- Warning(0.0,"Could not find '%s' as specified in POVINI environment.\n",
- Option_String_Ptr);
- }
- }
- }
-
- void MSDOS_Process_Povray_Ini(char *s)
- {
- char *buff;
- char *t;
-
- if (Option_String_Ptr != NULL)
- {
- return;
- }
-
- buff=POV_MALLOC(strlen(s)+13,"temp string");
-
- strcpy(buff,s);
-
- t=strrchr(buff,'\\');
- if (t==NULL)
- {
- t=strrchr(buff,'/');
- if (t==NULL)
- {
- t=strrchr(buff,':');
- if (t==NULL)
- {
- t=buff;
- }
- }
- }
-
- strcpy(t,"\\povray.ini");
-
- parse_ini_file(buff);
-
- POV_FREE(buff);
-
- }
-
- void ZTimerInit()
- {
- };
-
- void LZTimerOn()
- {
- clock_s = get_200();
- };
-
- void LZTimerOff()
- {
- clock_e = (get_200())-clock_s;
- };
-
- unsigned long LZTimerCount()
- {
- return clock_e;
- };
-
- void xtime(time)
- time_t *time;
- {
- *time = get_200();
- };
-